<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="java.util.*,com.controller.User1"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
		<%request.setCharacterEncoding("utf-8") ;%>
		<jsp:useBean id="u" class="com.controller.User1"></jsp:useBean>	
		<jsp:setProperty property="name" name="u" param="username"/>
		<jsp:setProperty property="password" name="u" param="pwd"/>
		
		用户名:<jsp:getProperty property="name" name="u"/><br>
		<%
		if(u.validate()){
			out.println("登录成功!");
		}else{
			out.println("登录失败!");
		}
		%>
</body>
</html>